package org.lanqiao.tjut.dao.impl;

import javax.annotation.Resource;

import org.lanqiao.tjut.bean.AdminBean;
import org.lanqiao.tjut.dao.AdminDao;
import org.lanqiao.tjut.mapper.AdminBeanMapper;
import org.springframework.stereotype.Repository;

@Repository("AdminInfoDao")
public class AdminInfoDao implements AdminDao {

	@Resource
	private AdminBeanMapper adminMapper;

	@Override
	public AdminBean selectByAccount(String adminAccount) {
		// 根据账号查询该管理员信息
		AdminBean adminB = adminMapper.selectByAccount(adminAccount);
		return adminB;
	}

	// -----------未开发---------------------------------
	@Override
	public int deleteByPrimaryKey(Integer adminIndex) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(AdminBean record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(AdminBean record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(AdminBean record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(AdminBean record) {
		// TODO Auto-generated method stub
		return 0;
	}

}
